package com.yehun.dao;

import com.yehun.entity.User;

import java.util.List;

public interface UserDao {


    List<User> list();

    List<User> listByRoleId(int roleId);

    User get(int id);

    User getByUserId(String userId);

    User getByEmail(String email);

    int save(User user);

    int updateRole(String userId, int roleId, String roleName);

    int updatePermission(String userId, Long permission);

    int remove(int id);

    int removeBatch(Integer[] idArray);
}
